<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>个人中心</title>
    <script src="js/flexible.js"></script>
    <link rel="stylesheet" href="css/flexible.css">
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/style.css">
    <script src="js/vue/vue.js"></script>
    <script src="js/vue/axios.js"></script>
    <script src="js/vue/MD5.js"></script>
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/wxJs.js"></script>
</head>
<body style="background-color: rgba(239,239,239,0.39)">
<div id="app">
    <div class="my_main">
        <template>
            <div class="my_head">
                <div class="my_tx"><img :src="from.Picurl" alt=""></div>
                <div class="my_name">{{from.name}}</div>
                <div class="my_set">
                    <a href="set.html">
                        <img src="images/set.png" alt="">
                    </a>
                </div>
                <div class="clear"></div>
            </div>
    
            <div class="h10"></div>
    
            <div class="my_list">
                <a href="my_card.html">
                    <div class="my_icon"><img src="images/my_card.png" alt=""></div>
                    <div class="my_title">我的会员卡</div>
                </a>
                <div class="clear"></div>
            </div>
    
            <div class="my_list">
                <a href="tp_record.html">
                    <div class="my_icon"><img src="images/tk_jl.png" alt=""></div>
                    <div class="my_title">团课记录</div>
                </a>
                <div class="clear"></div>
            </div>
    
            <div class="my_list">
                <a href="tpp_record.html">
                    <div class="my_icon"><img src="images/sj_jl.png" alt=""></div>
                    <div class="my_title">私教课记录</div>
                </a>    
                <div class="clear"></div>
            </div>
            <div class="my_list">
                <a href="integralExchange.html">
                    <div class="my_icon"><img src="images/jf_dh.png" alt=""></div>
                    <div class="my_title">积分兑换</div>
                </a>
                <div class="clear"></div>
            </div>
            <div class="my_list">
                <a href="integralOrderList.html">
                    <div class="my_icon"><img src="images/jf_dd.png" alt=""></div>
                    <div class="my_title">积分订单</div>
                </a>
                <div class="clear"></div>
            </div>
            <div class="my_list">
                <a href="jf_record.html">
                    <div class="my_icon"><img src="images/jf_jl.png" alt=""></div>
                    <div class="my_title">积分记录</div>
                </a>
                <div class="clear"></div>
            </div>
    
            <div class="my_list">
                <a href="sign_record.html">
                    <div class="my_icon"><img src="images/rc_jl.png" alt=""></div>
                    <div class="my_title">入场记录</div>
                </a>
                <div class="clear"></div>
            </div>
    
            <div class="my_list">
                <a href="tc_record.html">
                    <div class="my_icon"><img src="images/tc_jl.png" alt=""></div>
                    <div class="my_title">体测记录</div>
                </a>
                <div class="clear"></div>
            </div>
    
            <div class="my_list">
                <a href="my_photo.html">
                    <div class="my_icon"><img src="images/my_photo.png" alt=""></div>
                    <div class="my_title">我的相册</div>
                </a>
                <div class="clear"></div>
            </div>
            <div class="my_list">
                <a href="shopList.html">
                    <div class="my_icon"><img src="images/spdd.png" alt=""></div>
                    <div class="my_title">商品订单</div>
                </a>
                <div class="clear"></div>
            </div>
            <!-- <div class="my_list">
                <a href="#" @click.stop.prevent="activie">
                    <div class="my_icon"><img src="images/yxhd.png" alt=""></div>
                    <div class="my_title">营销活动</div>
                </a>
                <div class="clear"></div>
            </div> -->
        </template>
    </div>
    <div style="height: 0.53rem"></div>
    <div class="down">
        <div class="nav">
            <a href="index.html">
                <img src="images/sy.png" alt="首页"><br>
                <span>首页</span>
            </a>
        </div>
        <div class="nav">
            <a href="curriculum_t.html">
                <img src="images/tk.png" alt="团课"><br>
                <span>团课</span>
            </a>
        </div>
        <div class="nav">
            <a href="curriculum_p.html">
                <img src="images/sj.png" alt="私课"><br>
                <span>私课</span>
            </a>
        </div>
        <div class="nav">
            <a href="shopindex.html">
                <img src="images/sc.png" alt="商城"><br>
                <span>商城</span>
            </a>
        </div>
        <div class="nav navActive">
            <a href="my.html">
                <img src="images/more_c.png" alt="更多"><br>
                <span>更多</span>
            </a>
        </div>
    </div>
</div>
</body>
<script>
 new Vue({
    el: '#app',
    data: {
        from:{
            name:'',
            Picurl:'images/tx.png'
        },
        vids:''
    },
    created(){
        this.getlists()
    },
    methods:{
        getlists(){
            this.vids=sessionStorage.getItem('Vid')
            //console.log(this.vids)
            getVs()
            sessionStorage.setItem('logo','0')
            axios.get('/mobileapi/member/user_info.php').then(data =>{
                console.log(data.data)
                let { msg, code,user} = data.data
                    if (code !== 200) {
                        _this.$message({
                            message: msg,
                            type: 'error'
                        });
                    } else {
                        //window.vant.Toast.clear();
                        data=data.data
                        this.from.name=data.data.Username
                        if(data.data.Picurl!=null||data.data.Picurl!=''){
                            this.from.Picurl=data.data.Picurl
                        }
                    }
                }).catch(function (error) {
                    console.log(error); 
            })
        },
        activie(){
            getVs()
            sessionStorage.setItem('logo','0')
            axios.get('/mobileapi/member/yingxiaohuodong.php').then(data =>{
                console.log(data.data)
                let { msg, code,user} = data.data
                    if (code !== 200) {
                        _this.$message({
                            message: msg,
                            type: 'error'
                        });
                    } else {
                        window.location.href=data.data.url
                    }
                }).catch(function (error) {
                    console.log(error); 
            })
        }
    }
})       
</script>
</html>